using UnityEngine;
using System.Collections;

public class CreamFade : MonoBehaviour {
	
	UITexture Script;
	
	// Use this for initialization
	void Start () {
		Script = GetComponent<UITexture>();
		iTween.ValueTo(gameObject,iTween.Hash("from",0,"to",1,"time",1,"onupdate","AlphaChange","oncompletetarget",GameObject.Find("Camera"),"oncomplete","FadeFinish"));
	}
	
	void AlphaChange(float alpha)
	{
		Script.alpha = alpha;
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
